<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title></title>
    <link href="./favicon.ico" rel="icon">
    <link href="static/css/bootstrap.css" rel="stylesheet">
    <link rel="stylesheet" href="./static/arduino/color.css">
    <link href="static/css/style.css" rel="stylesheet">
</head>
<script src="./static/base/blockly_compressed.js"></script>
<script type="text/javascript" src="./static/base/variables.js"></script>
<script src="./static/base/events.js"></script>
<script src="./static/base/procedures.js"></script>
<script src="./static/base/blockly.js"></script>
<script src="./static/msg/js/zh-hans.js"></script>
<script src='./static/arduino/index.js'></script>
<script type="text/javascript" src="./static/arduino/digitalPinToInterrupt.js"></script>
<script type="text/javascript" src="./static/arduino/Blob.js"></script>
<script type="text/javascript" src="./static/arduino/spin.js"></script>
<script type="text/javascript" src="./static/arduino/FileSaver.min.js"></script>
<script type="text/javascript" src="./static/arduino/blockly_helper.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/extend.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/pins.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/inout.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/control.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/math.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/text.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/lists.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/logic.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/display.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/communicate.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/storage.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/sensor.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/ethernet.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/variables.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/procedures.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/factory.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/scoop.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/serial.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/blockly/actuator.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/pins.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/inout.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/control.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/math.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/text.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/lists.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/logic.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/display.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/communicate.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/storage.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/sensor.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/ethernet.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/variables.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/procedures.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/factory.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/scoop.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/serial.js"></script>
<script type="text/javascript" src="./static/blockly/arduino/code/actuator.js"></script>
<script src="./static/src-min-noconflict/ace.js" type="application/javascript"></script>
<script src="./static/src-min-noconflict/ext-language_tools.js" type="application/javascript"></script>
<script src="./static/mian.js"></script>
<script src="./static/electron/index.js"></script>
<script src="./static/model/jquery.slim.min.js"></script>
<script>if (typeof module === 'object') { window.jQuery = window.$ = module.exports; };</script>
<script src="./static/model/popper.min.js"></script>
<script src="./static/model/bootstrap.min.js"></script>


<body>

    <xml id="toolbox" style="display: none">
        <!-- 下面颜色是改变左导航条小球背景颜色 -->
        <category name='事件' id="catControl" colour="#FFD500">
            <block type="base_setup"></block>
        </category>
        <category name='控制' id="catControl" colour="#FFAB19" secondaryColour="#3373CC">
            <block type="controls_end_program"></block>
            <block type="base_delay">
                <value name="DELAY_TIME">
                    <shadow type="math_number">
                        <field name="NUM">1000</field>
                    </shadow>
                </value>
            </block>
            <block type="controls_if"></block>
            <block type="controls_switch_case"></block>
            <block type="controls_for">
                <value name="FROM">
                    <shadow type="math_number">
                        <field name="NUM">1</field>
                    </shadow>
                </value>
                <value name="TO">
                    <shadow type="math_number">
                        <field name="NUM">10</field>
                    </shadow>
                </value>
                <value name="STEP">
                    <shadow type="math_number">
                        <field name="NUM">1</field>
                    </shadow>
                </value>
            </block>
            <block type="controls_whileUntil"></block>
            <block type="controls_flow_statements"></block>
            <block type="controls_millis"></block>
            <block type="controls_mstimer2">
                <value name="TIME">
                    <shadow type="math_number">
                        <field name="NUM">500</field>
                    </shadow>
                </value>
            </block>
            <block type="controls_mstimer2_start"></block>
            <block type="controls_mstimer2_stop"></block>
            <block type="controls_interrupts"></block>
            <block type="controls_nointerrupts"></block>

        </category>

        <category name='逻辑' id="catLogic" colour="#00A4A6">
            <block type="logic_compare"></block>
            <block type="logic_operation"></block>
            <block type="logic_negate"></block>
            <block type="logic_boolean"></block>
            <block type="logic_null"></block>
            <block type="logic_true_or_false"></block>
        </category>
        <category name='数学' id="catMath" colour="#9400D3">
            <block type="math_number">
            </block>
            <block type="math_arithmetic">
                <value name="A">
                    <shadow type="math_number">
                        <field name="NUM">1</field>
                    </shadow>
                </value>
                <value name="B">
                    <shadow type="math_number">
                        <field name="NUM">1</field>
                    </shadow>
                </value>
            </block>
            <block type="math_bit">
                <value name="A">
                    <shadow type="math_number">
                        <field name="NUM">0</field>
                    </shadow>
                </value>
                <value name="B">
                    <shadow type="math_number">
                        <field name="NUM">0</field>
                    </shadow>
                </value>
            </block>
            <block type="math_trig"></block>
            <block type="math_to_int"></block>
            <block type="math_max_min">
                <value name="A">
                    <shadow type="math_number">
                        <field name="NUM">1</field>
                    </shadow>
                </value>
                <value name="B">
                    <shadow type="math_number">
                        <field name="NUM">2</field>
                    </shadow>
                </value>
            </block>
            <block type="math_random_seed"></block>
            <block type="math_random_int">
                <value name="FROM">
                    <shadow type="math_number">
                        <field name="NUM">1</field>
                    </shadow>
                </value>
                <value name="TO">
                    <shadow type="math_number">
                        <field name="NUM">100</field>
                    </shadow>
                </value>
            </block>
            <block type="math_constrain">
                <value name="LOW">
                    <shadow type="math_number">
                        <field name="NUM">1</field>
                    </shadow>
                </value>
                <value name="HIGH">
                    <shadow type="math_number">
                        <field name="NUM">100</field>
                    </shadow>
                </value>
            </block>
            <block type="base_map">
                <value name="fromLow">
                    <shadow type="math_number">
                        <field name="NUM">1</field>
                    </shadow>
                </value>
                <value name="fromHigh">
                    <shadow type="math_number">
                        <field name="NUM">100</field>
                    </shadow>
                </value>
                <value name="toLow">
                    <shadow type="math_number">
                        <field name="NUM">1</field>
                    </shadow>
                </value>
                <value name="toHigh">
                    <shadow type="math_number">
                        <field name="NUM">1000</field>
                    </shadow>
                </value>
            </block>
        </category>
        <category name='文本' id="catText" colour="#B8860B">
            <block type="text">
                
            </block>
            <block type="text_join">
                <value name="A">
                    <shadow type="text">
                        <field name="TEXT">Hello</field>
                    </shadow>
                </value>
                <value name="B">
                    <shadow type="text">
                        <field name="TEXT">HteRobot</field>
                    </shadow>
                </value>
            </block>
            <block type="text_to_number">
                <value name="VAR">
                    <shadow type="text">
                        <field name="TEXT">123</field>
                    </shadow>
                </value>
            </block>
            <block type="ascii_to_char">
                <value name="VAR">
                    <shadow type="math_number">
                        <field name="NUM">223</field>
                    </shadow>
                </value>
            </block>
            <block type="char_to_ascii">
                <field name="TEXT">a</field>
            </block>

            <block type="number_to_text">
                <value name="VAR">
                    <shadow type="math_number">
                        <field name="NUM">0</field>
                    </shadow>
                </value>
            </block>
            <block type="text_length">
                <value name="VAR">
                    <shadow type="text">
                        <field name="TEXT">hello</field>
                    </shadow>
                </value>
            </block>
            <block type="text_char_at">
                <value name="VAR">
                    <shadow type="text">
                        <field name="TEXT">hello</field>
                    </shadow>
                </value>
                <value name="AT">
                    <shadow type="math_number">
                        <field name="NUM">0</field>
                    </shadow>
                </value>
            </block>
            <block type="text_equals_starts_ends">
                <value name="STR1">
                    <shadow type="text">
                        <field name="TEXT"></field>
                    </shadow>
                </value>
                <value name="STR2">
                    <shadow type="text">
                        <field name="TEXT"></field>
                    </shadow>
                </value>
            </block>
            <block type="text_compareTo">
                <value name="STR1">
                    <shadow type="text">
                        <field name="TEXT"></field>
                    </shadow>
                </value>
                <value name="STR2">
                    <shadow type="text">
                        <field name="TEXT"></field>
                    </shadow>
                </value>
            </block>
        </category>
        <category id="catVar" name='变量' colour="#DC143C">
            <block type="variables_declare"></block>
            <block type="variables_get"></block>
            <block type="variables_set"></block>
        </category>
        <category name='数组' id="catLists" colour="#E65722">
            <block type="lists_create_with2"></block>
            <block type="lists_length"></block>
            <block type="lists_getIndex">
                <value name="AT">
                    <shadow type="math_number">
                        <field name="NUM">1</field>
                    </shadow>
                </value>
            </block>
            <block type="lists_setIndex">
                <value name="AT">
                    <shadow type="math_number">
                        <field name="NUM">1</field>
                    </shadow>
                </value>
            </block>
        </category>
        <category name="引脚" id="catInOut" colour="#B22222">
            <block type="inout_highlow"></block>
            <block type="inout_digital_write2">
                <value name="PIN">
                    <shadow type="pins_digital"></shadow>
                </value>
                <value name="STAT">
                    <shadow type="inout_highlow">
                    </shadow>
                </value>
            </block>
            <block type="inout_digital_read2">
                <value name="PIN">
                    <shadow type="pins_digital"></shadow>
                </value>
            </block>
            <block type="inout_analog_write">
                <value name="PIN">
                    <shadow type="pins_pwm"></shadow>
                </value>
                <value name="NUM">
                    <shadow type="math_number">
                        <field name="NUM">0</field>
                    </shadow>
                </value>
            </block>
            <block type="inout_analog_read">
                <value name="PIN">
                    <shadow type="pins_analog"></shadow>
                </value>
            </block>
            <block type="controls_attachInterrupt">
                <value name="PIN">
                    <shadow type="pins_interrupt"></shadow>
                </value>
            </block>
            <block type="controls_detachInterrupt">
                <value name="PIN">
                    <shadow type="pins_interrupt"></shadow>
                </value>
            </block>
            <block type="inout_pulseIn">
                <value name="PIN">
                    <shadow type="pins_digital"></shadow>
                </value>
            </block>
            <block type="inout_pulseIn2">
                <value name="PIN">
                    <shadow type="pins_digital"></shadow>
                </value>
                <value name="TIMEOUT">
                    <shadow type="math_number">
                        <field name="NUM">1000000</field>
                    </shadow>
                </value>
            </block>
            <block type="inout_pinMode">
                <value name="PIN">
                    <shadow type="pins_digital"></shadow>
                </value>
            </block>
            <block type="inout_shiftout">
                <value name="PIN1">
                    <shadow type="pins_digital"></shadow>
                </value>
                <value name="PIN2">
                    <shadow type="pins_digital"></shadow>
                </value>
                <value name="DATA">
                    <shadow type="math_number">
                        <field name="NUM">0</field>
                    </shadow>
                </value>
            </block>
        </category>
        <category class="cat" name='数字传感器' id="catSensor1" colour="#00975D">
            <block type='cpkg'></block>
            <block type='gdkgcgq'></block>
            <block type='gdkgcgqwt'></block>
            <block type='hwjsq'></block>
            <block type='zdkg'></block>
        </category>
        <category class="cat" name='模拟传感器' id="catSensor2" colour="#D8271D">
            <block type='gmmk'></block>
            <block type='sycgq'></block>
            <block type='hdcgq'></block>
            <block type='imu'></block>
            <block type='imu1'></block>
            <block type="hycgq"></block>

        </category>

        <category name='执行器' id="catActuator" colour="#FBB217">
            <block type='controls_dja'></block>
            <block type='propeller'></block>
            <block type='led'></block>
            <block type='fmq1'></block>
            <block type="controls_tone">
                <value name="FREQUENCY">
                    <shadow type="tone_notes"></shadow>
                </value>
            </block>
            <block type="controls_notone"></block>
            <block type="servo_move">
                <value name="DEGREE">
                    <shadow type="math_number">
                        <field name="NUM">0</field>
                    </shadow>
                </value>
                <value name="DELAY_TIME">
                    <shadow type="math_number">
                        <field name="NUM">0</field>
                    </shadow>
                </value>
            </block>
        </category>
        <category name='串口' id="catSerialPort" colour="#00979D">
            <block type="serial_begin"></block>
            <block type="serial_write"></block>
            <block type="serial_print"></block>
            <block type="serial_println"></block>
            <block type="serial_print_hex"></block>
            <block type="serial_available"></block>
            <block type="serial_readstr"></block>
            <block type="serial_readstr_until">
                <value name="CONTENT">
                    <shadow type="text_char">
                        <field name="TEXT">a</field>
                    </shadow>
                </value>
            </block>
            <block type="serial_parseInt_Float"></block>
            <block type="serial_flush"></block>
            <block type="serial_event"></block>
        </category>
        <category name='通信' id="catGroup" colour="#FF8526">
            <block type="i2c_master_writer"></block>
            <block type="i2c_master_reader"></block>
            <block type="i2c_master_reader2"></block>
            <block type="i2c_available"></block>
            <block type="i2c_slave_onreceive">
                <value name="PIN">
                    <shadow type="pins_digital"></shadow>
                </value>
            </block>

        </category>
        <category name='储存' id="catStorage" colour="#B22222">

            <block type="store_eeprom_write_byte">
                <value name="ADDRESS">
                    <shadow type="math_number">
                        <field name="NUM">0</field>
                    </shadow>
                </value>
                <value name="DATA">
                    <shadow type="math_number">
                        <field name="NUM">0</field>
                    </shadow>
                </value>
            </block>
            <block type="store_eeprom_read_byte">
                <value name="ADDRESS">
                    <shadow type="math_number">
                        <field name="NUM">0</field>
                    </shadow>
                </value>
            </block>
            <block type="store_eeprom_write_long">
                <value name="ADDRESS">
                    <shadow type="math_number">
                        <field name="NUM">0</field>
                    </shadow>
                </value>
                <value name="DATA">
                    <shadow type="math_number">
                        <field name="NUM">0</field>
                    </shadow>
                </value>
            </block>
            <block type="store_eeprom_read_long">
                <value name="ADDRESS">
                    <shadow type="math_number">
                        <field name="NUM">0</field>
                    </shadow>
                </value>
            </block>
        </category>


        <category id="catFun" name='函数' colour="#3455DB">
            <block type="procedures_defnoreturn"></block>
            <block type="procedures_defreturn"></block>
            <block type="factory_function_noreturn"></block>
            <block type="factory_function_return"></block>
        </category>
        <category class="cat" name="高级扩展" id="catFactory" colour="#7600A8">
            <block type="factory_include"></block>
            <block type="factory_declare"></block>
            <block type="factory_define"></block>
            <block type="factory_callMethod_noreturn"></block>
            <block type="factory_callMethod_return"></block>
            <block type="factory_static_method_noreturn"></block>
            <block type="factory_static_method_return"></block>
            <block type="factory_block"></block>
            <block type="factory_block_return"></block>
            <block type="SCoopTask"></block>
            <block type="SCoop_yield"></block>
            <block type="SCoop_sleep">
                <value name="sleeplength">
                    <shadow type="math_number">
                        <field name="NUM">1000</field>
                    </shadow>
                </value>
            </block>
        </category>
    </xml>
    <div id="app"></div>

    <!-- built files will be auto injected -->
</body>

</html>
<script>
    try {
        const {
            version
        } = require('../package.json')
        window.onload = function () {
            document.title = "DouBao-北京哈工科教机器人科技有限公司_V" + version
        }
    } catch (err) {

    }
    /********************************************************************************************************/
    $(document).bind('click ', function (e) {
        var e = e || window.event; //浏览器兼容性 
        var elem = e.target || e.srcElement;
        while (elem) { //循环判断至跟节点，防止点击的是div子元素 
            if (elem.class && elem.class == 'blocklyBlockBackground') {
                return;
            }
            elem = elem.parentNode;
        }
        $('.blocklyDropDownDiv').css('display', 'none'); //点击的不是div或其子元素 
    });
</script>